<?php defined('SEJUJOPEFDNGJSL') or exit('Access denied');?>
<?php
if(empty($_SESSION["checkscode"])||!strstr($_SESSION["checkscode"],'modpwd')){
    $_GET["m"]="modpwd";
    @require(ROOTTHEMETEMP."checkscode.inc.php");
    exit;
}
$rr=$config->getpwd();
?>
<?php require("topbut.php") ?>
<div class="panel panel-inverse">
    <div class="panel-heading">
        <h4 class="panel-title">密码修改</h4>
    </div>
    <div class="panel-body">
        <form action="control.php" method="post" onsubmit="return chkpwd()" class="form-horizontal">
            <input type="hidden" name="act" value="modpwd" />
            <div class="form-group">
                <label class="col-md-3 control-label ui-sortable">密码类型</label>
                <div class="col-md-9 ui-sortable">
                    <div class="radio">
                        <?php
                            foreach ($rr as $k => $v) {
                               echo '<label style="display:inline-block;"><input type="radio" name="mtype" value="'.$k.'">'.$v.'</label><span style="margin-left:30px;"></span>';
                            }
                        ?>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-3 control-label ui-sortable">原密码</label>
                <div class="col-md-9 ui-sortable">
                    <input type="password" name="ypwd" id="ypwd" class="form-control" >
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-3 control-label ui-sortable">新密码</label>
                <div class="col-md-9 ui-sortable">
                    <input type="password" name="npwd" id="npwd" class="form-control" >
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-3 control-label ui-sortable">重复新密码</label>
                <div class="col-md-9 ui-sortable">
                    <input type="password" name="renpwd" id="renpwd" class="form-control" >
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-9 col-md-offset-3 ui-sortable">
                    <button type="submit" class="btn btn-md btn-warning m-r-5">修改</button>
                </div>
            </div>
            <!-- <table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:5px;" class="baitab mybantable" align="center">
                <tbody>
                    <tr>
                        <td width="25%" valign="top" align="right"><i>*</i><span class="regc">密码类型</span></td>
                        <td valign="top" align="left"><?php
                            foreach ($rr as $k => $v) {
                               echo '<label><input type="radio" name="mtype" value="'.$k.'">'.$v.'</label>&nbsp;';
                            }
                        ?></td>
                    </tr>
                    <tr>
                        <td width="25%" valign="top" align="right"><i>*</i><span class="regc">原密码</span></td>
                        <td valign="top"><input type="password" name="ypwd" id="ypwd" class="pass400" style="font-size: 14px;text-indent: 5px;color: #666;" ></td>
                    </tr>
                    <tr>
                        <td width="25%" valign="top" align="right"><i>*</i><span class="regc">新密码</span></td>
                        <td valign="top"><input type="password" name="npwd" id="npwd" class="pass400" style="font-size: 14px;text-indent: 5px;color: #666;" ></td>
                    </tr>
                    <tr>
                        <td width="25%" valign="top" align="right"><i>*</i><span class="regc">重复新密码</span></td>
                        <td valign="top"><input type="password" name="renpwd" id="renpwd" class="pass400" style="font-size: 14px;text-indent: 5px;color: #666;" ></td>
                    </tr>
                    <tr>
                        <td width="25%" valign="top" align="right" style="height:50px;line-height:50px"></td>
                        <td valign="top" style="height:50px;line-height:50px"><input type="submit" value="修改" class="btn" style="width: 400px;height: 50px;"></td>
                    </tr>
                </tbody>
            </table> -->
        </form>
    </div>
</div>
<!-- <div class="right_center">密码修改</div> -->
<style type="text/css">
    .mybantable td{padding:5px 0;}
</style>
